@charset "UTF-8";

/*Global settings for Thesis Management System*/
/*Copyright:E-top Studio*/
/*Author:Ben Yip*/

/*======= a useful check on elements when constructing a page =========*/
.test-border {
    border: solid red 1px;
}

/*================================================*/
/*=============== basic layout ===================*/
/*================================================*/

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 14px;
}

body {
    padding-top: 70px;
    /*min-width: 1280px;*/
    min-width: 1024px;
    min-height: 600px;
    background: url("../img/pageBgPattern.jpg");
    font-family: "Microsoft Yahei", "微软雅黑", sans-serif;
}

div.container-fluid, div.container {
    min-height: 100%;
    position: relative;
    width:1200px;
    height: auto;
    color:#66afe9;
}

div.main-content {
    padding-bottom: 3em;
}

div.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: .2em;
    font-size: 1.1em;
    text-align: center;
    color: #777;
    /*background-color: #111;*/
}

/*===========================================================*/
/*=================== global components =====================*/
/*===========================================================*/

.title-main {
    display: inline;
    text-shadow: rgba(170, 170, 170, 0.88) 4px 3px 7px;
}

.title-main.gap-align-hack-left {
    margin: 0 0 0 15px;
}

section.main-panel {
    margin: 1em 0;
    padding: 1.5em;
    border-radius: 8px;
    background: rgba(254, 254, 254, 0.95);
    box-shadow: #777 5px 5px 10px;
    font-size: 1.2em;
}

section.main-panel .title-2nd {
    margin: -10px 0 0;
    font-size: 22px;
}

section.main-panel .row {
    margin-bottom: .8em;
}

section.main-panel .row:last-child {
    margin-bottom: 0;
}

section.main-panel hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #ccc;
}

section.main-panel .item-name {
    text-align: right;
    font-weight: bold;
}

section.main-panel .item-name.edit {
    padding-top: 6px;
    padding-bottom: 6px;
}

section.main-panel .item-content {
    text-align: left;
    word-wrap: break-word;
    word-break: break-all;
}

section.main-panel button[type="submit"],
section.main-panel button[type="reset"] {
    padding-left: 2em;
    padding-right: 2em;
    word-spacing: .5em;
}

.modal-body form .form-group:last-child {
    margin-bottom: 0;
}

.modal-body form hr {
    margin: 1em -15px;
    border: 0;
    border-top: #ddd 1px solid;
}

.modal-body form button[type="submit"] {
    padding-left: 2em;
    padding-right: 2em;
}

.modal-body .modal-tips-only {
    margin: 0;
    padding: 0;
    display: block;
    text-indent: 2em;
    font-size: 1.2em;
}

table > thead > tr > th,
table > tbody > tr > td,
table > tfoot > tr > td {
    text-align: center;
    vertical-align: middle !important;
}

table > thead {
    background: #eee;
}

table .table-cell-hover-tool .tool {
    display: none;
    margin-top: -2px;
}

form .required {
    color: red;
}

/*======================================================*/
/*=================== fast style tools =================*/
/*======================================================*/

.inline {
    display: inline !important;
}

.inline-block {
    display: inline-block !important;
}

.cursor-default {
    cursor: default !important;
}

.text-bold {
    font-weight: bold !important;
}

textarea.resize-v {
    resize: vertical;
}

textarea.resize-h {
    resize: horizontal;
}

textarea.resize-none {
    resize: none;
}

.margin-bottom-none {
    margin-bottom: 0;
}

/*================= navigation bar ==========================*/

.navbar .container-fluid {
    padding-left: 2em;
    padding-right: 2em;
}

.navbar-leaf {
    font-size: 1.2em;
    background-color: #020202;
    border-bottom: solid 2px #555;
}

.navbar-leaf .navbar-brand {
    font-weight: bold;
    color: #489957;
}

.navbar-leaf .navbar-brand:hover,
.navbar-leaf .navbar-brand:focus {
    color: #B2DCBA;
    background-color: transparent;
}

.navbar-leaf .navbar-text {
    color: #f5f5f5;
}

.navbar-leaf .navbar-nav > li > a {
    padding: 15px 13px;
    color: #ffffff;
}

.navbar-leaf .navbar-nav > li > a:hover,
.navbar-leaf .navbar-nav > li > a:focus {
    color: #FFCC00;
    background-color: transparent;
}

.navbar-leaf .navbar-nav > .active > a,
.navbar-leaf .navbar-nav > .active > a:hover,
.navbar-leaf .navbar-nav > .active > a:focus {
    color: #F5C564;
    background-color: #e7e7e7;
}

.navbar-leaf .navbar-nav > .disabled > a,
.navbar-leaf .navbar-nav > .disabled > a:hover,
.navbar-leaf .navbar-nav > .disabled > a:focus {
    color: #5A7C63;
    background-color: transparent;
}

.navbar-leaf .navbar-toggle {
    border-color: #ddd;
}

.navbar-leaf .navbar-toggle:hover,
.navbar-leaf .navbar-toggle:focus {
    background-color: #B2DCBA;
}

.navbar-leaf .navbar-toggle .icon-bar {
    background-color: #888;
}

.navbar-leaf .navbar-collapse,
.navbar-leaf .navbar-form {
    border-color: #e7e7e7;
}

.navbar-leaf .navbar-nav > .open > a,
.navbar-leaf .navbar-nav > .open > a:hover,
.navbar-leaf .navbar-nav > .open > a:focus {
    color: #FFCC00;
    background-color: #020202;
}

@media (max-width: 767px) {
    .navbar-leaf .navbar-nav .open .dropdown-menu > li > a {
        color: #777;
    }

    .navbar-leaf .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-leaf .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #333;
        background-color: transparent;
    }

    .navbar-leaf .navbar-nav .open .dropdown-menu > .active > a,
    .navbar-leaf .navbar-nav .open .dropdown-menu > .active > a:hover,
    .navbar-leaf .navbar-nav .open .dropdown-menu > .active > a:focus {
        color: #555;
        background-color: #e7e7e7;
    }

    .navbar-leaf .navbar-nav .open .dropdown-menu > .disabled > a,
    .navbar-leaf .navbar-nav .open .dropdown-menu > .disabled > a:hover,
    .navbar-leaf .navbar-nav .open .dropdown-menu > .disabled > a:focus {
        color: #ccc;
        background-color: transparent;
    }
}

.navbar-leaf .navbar-link {
    color: #777;
}

.navbar-leaf .navbar-link:hover {
    color: #333;
}

.navbar-leaf .btn-link {
    color: #777;
}

.navbar-leaf .btn-link:hover,
.navbar-leaf .btn-link:focus {
    color: #333;
}

.navbar-leaf .btn-link[disabled]:hover,
fieldset[disabled] .navbar-leaf .btn-link:hover,
.navbar-leaf .btn-link[disabled]:focus,
fieldset[disabled] .navbar-leaf .btn-link:focus {
    color: #ccc;
}

/*=============== override .badge ==================*/
.badge.notice-box {
    color: black;
    background-color: #A6E22E;
}

/*=======================================================*/
/*============= masonry style refining ==================*/
/*=======================================================*/

/*--------------- basic style ------------------*/
.masonry-container {
    margin: 1em auto;
    width: 100%;
}

.masonry-container > .mason {
    display: block;
    width: 24.5%; /* 4 col */
    word-break: break-all;
}

.masonry-container > .mason > * {
    /* margin-right && margin-bottom*/
    margin: 0 1em 1em 0;
}

/*------------------ for notice component on home pages -----------------------*/
.mason > .notice-wrapper {
    margin: 0 1.5em 1.5em 0;
    border: #555 solid 3px;
    border-radius: 4px;
    background: #eee;
    opacity: .9;
    transition: all .5s;
}

.mason > .notice-wrapper:hover {
    box-shadow: #777 4px 4px 15px;
    transition: all .4s;
}

.mason > .notice-wrapper > .item-name,
.mason > .notice-wrapper > .content,
.mason > .notice-wrapper > .info {
    display: block;
    padding: 2px 4px;
    border-bottom: black solid 1px;
    background: #f5f5f5;
}

.mason > .notice-wrapper > .item-name {
    font-size: 1.3em;
    font-weight: bold;
}

.mason > .notice-wrapper > .content {
    padding: 5px 7px;
    text-indent: 2em;
}

.mason > .notice-wrapper > .info {
    padding: 3px;
    border: 0;
}

.mason > .notice-wrapper > .info > .receiver {
    float: left;
}

.mason > .notice-wrapper > .info > .time {
    float: right;
}

.mason > .notice-wrapper > ul.toolbar {
    display: block;
    margin: 0;
    padding: 0;
}

.mason > .notice-wrapper > ul.toolbar:before,
.mason > .notice-wrapper > ul.toolbar:after {
    content: "";
    display: block;
    visibility: hidden;
    clear: both;
}

.mason > .notice-wrapper > ul.toolbar li {
    float: left;
    width: 50%;
    list-style: none;
    text-align: center;
    line-height: 35px;
    font-size: 1.2em;
    border-top: solid 1px black;
    border-right: solid 1px black;
    background: #F4F4F4;
}

.mason > .notice-wrapper > ul.toolbar li:first-child {
    border-bottom-left-radius: 4px;
}

.mason > .notice-wrapper > ul.toolbar li:last-child {
    border-right: 0;
    border-bottom-right-radius: 4px;
}

.mason > .notice-wrapper > ul.toolbar li a {
    display: inline-block;
    width: 100%;
    height: 100%;
    color: #797979;
}

.mason > .notice-wrapper > ul.toolbar li a:hover {
    color: #222;
}

@media screen and (max-width: 768px) {
    .masonry-container.notice > .mason {
        width: 49%;
    }
}

@media screen and (min-width: 768px) {
    .masonry-container.notice > .mason {
        width: 49%;
    }
}

@media screen and (min-width: 992px) {
    .masonry-container.notice > .mason {
        width: 33%;
    }
}

/*================================================*/
/*@media screen and (max-width: 480px) {*/
/*.masonry-container > .mason {*/
/*width: 100%;*/
/*}*/
/*}*/

/*@media screen and (min-width: 480px) {*/
/*.masonry-container > .mason {*/
/*width: 49%;*/
/*}*/
/*}*/

/*@media screen and (min-width: 768px) {*/
/*.masonry-container > .mason {*/
/*width: 33%;*/
/*}*/
/*}*/

/*@media screen and (min-width: 992px) {*/
/*.masonry-container > .mason {*/
/*width: 24.5%;*/
/*}*/
/*}*/

/*@media screen and (min-width: 1200px) {*/
/*.masonry-container > .mason {*/
/*width: 19.5%;*/
/*}*/
/*}*/

/*@media screen and (min-width: 1600px) {*/
/*.masonry-container > .mason {*/
/*width: 16%;*/
/*}*/
/*}*/
/*================================================*/

/*==========================================================*/
/*=================== message box ==========================*/
/*==========================================================*/

/*================== the receiving page ========================*/

/*as for no nav bar in these pages, override the padding of body*/
body.message-box,
body.assignment-info {
    padding-top: 15px;
}

body.assignment-info header,
body.message-box header {
    margin-bottom: 1.2em;
    font-size: 1.2em;
}

body.message-box .row .no-padding {
    padding-left: 0;
    padding-right: 0;
}

body.message-box .box {
    border-radius: 4px;
    box-shadow: #777 5px 5px 7px;
}

body.message-box .navigation,
body.message-box .contacts,
body.message-box .messages,
body.message-box .sending-area,
body.message-box .tips {
    min-height: 600px;
    height: 600px;
    border-radius: 4px;
    overflow: auto;
}

body.message-box .messages,
body.message-box .tips {
    overflow: hidden;
}

body.message-box .sending-area {
    overflow-x: hidden;
    overflow-y: auto;
}

/*---------- the navigation links side bar -----------*/
body.message-box .navigation,
body.message-box .navigation > a {
    background: #4795d6;
}

body.message-box .navigation > a {
    display: block;
    padding: 8px 5px;
    border-bottom: solid 1px #8AB8DF;
    color: #f7f7f1;
    text-align: center;
    text-decoration: none;
    width: 100%;
    transition: background-color .2s;
}

body.message-box .navigation > a.active,
body.message-box .navigation > a:hover {
    background: #3C85C3;
    transition: background-color .2s;
}

body.message-box .navigation > a > span {
    display: block;
    font-size: 1.2rem;
}

body.message-box .navigation > a > span.glyphicon {
    font-size: 2.4rem;
    padding-bottom: 2px;
}

/*--------------------- the contacts list ---------------------*/
body.message-box .contacts,
body.message-box .tips {
    background: #F9F9F9;
}

body.message-box .contacts .list-head,
body.message-box .contacts .people {
    display: block;
    word-spacing: -6px; /*to remove the gap of inline-block*/
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px dotted #c1c1c1;
    border-radius: 5px;
    font-size: 1.2em;
}

body.message-box .contacts .list-head {
    padding: 4px 0;
    border-bottom: 1px solid #D9D9D9;
    background: #e3e3e3;
}

body.message-box .contacts .people:hover {
    cursor: pointer;
    background: rgba(241, 241, 241, 0.100);
    transition: background-color .2s;
}

body.message-box .contacts .people.active {
    margin-top: -1px;
    border: #D9D9D9 solid 1px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 0 10px #dddddd;
    transition: background-color .3s;
}

body.message-box .contacts .list-head > .name,
body.message-box .contacts .list-head > .character,
body.message-box .contacts .list-head > .id,
body.message-box .contacts .people > .name,
body.message-box .contacts .people > .character,
body.message-box .contacts .people > .id {
    display: inline-block;
    text-align: center;
}

body.message-box .contacts .list-head > .name,
body.message-box .contacts .people > .name {
    width: 26%;
}

body.message-box .contacts .list-head > .character,
body.message-box .contacts .people > .character {
    width: 24%;
}

body.message-box .contacts .list-head > .id,
body.message-box .contacts .people > .id {
    width: 42%;
}

body.message-box .contacts .people > .badge {
    text-align: center;
}

/*----------- the messages panel ------------*/
body.message-box .messages {
    position: relative;
    padding-top: 33px;
    padding-bottom: 126px;
    background: #fff;
}

body.message-box .messages > .info {
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px 15px;
    width: 100%;
    border-left: 2px solid #D3D3D3;
    border-bottom: 1px solid #D9D9D9;
    -moz-border-radius-topright: 5px;
    background: #e3e3e3;
    font-size: 1.2em;
}

body.message-box .messages > ul {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
    box-shadow: 0 6px 15px #ddd;
}

body.message-box .messages > ul > li.msg {
    display: block;
    margin: 0 1.3em 1.3em;
    list-style: none;
}

body.message-box .messages > ul > li.msg:first-child {
    margin-top: 1.5em;
}

body.message-box .messages > ul > li.msg:before,
body.message-box .messages > ul > li.msg:after {
    content: "";
    display: block;
    visibility: hidden;
    clear: both;
}

body.message-box .messages > ul > li.msg > .content-wrapper {
    position: relative;
    padding: 16px 14px 10px;
    min-width: 200px;
    max-width: 450px;
    border-radius: 5px;
    transition: box-shadow .2s;
}

body.message-box .messages > ul > li.msg > .content-wrapper:hover {
    box-shadow: #ccc 1px 1px 5px;
    transition: box-shadow .2s;
}

body.message-box .messages > ul > li.msg.left > .content-wrapper {
    float: left;
    background: #F2F8FB;
}

body.message-box .messages > ul > li.msg.right > .content-wrapper {
    float: right;
    background: #FBFAF2;
}

body.message-box .messages > ul > li.msg > .content-wrapper .arrow {
    position: absolute;
    top: 15px;
    width: 0;
    height: 0;
    border: 16px solid transparent;
}

body.message-box .messages > ul > li.msg.left > .content-wrapper .arrow {
    left: -12px;
    border-right-color: #F2F8FB;
    border-left-width: 0;
}

body.message-box .messages > ul > li.msg.right > .content-wrapper .arrow {
    right: -10px;
    border-left-color: #FBFAF2;
    border-right-width: 0;
}

body.message-box .messages > ul > li.msg > .content-wrapper > .delete {
    display: none;
    position: absolute;
    top: -3px;
    right: 3px;
    color: #ccc;
    font-size: 18px;
    transition: color .2s;
}

body.message-box .messages > ul > li.msg > .content-wrapper > .delete:hover {
    color: #838383;
    cursor: pointer;
    transition: color .2s;
}

body.message-box .messages > ul > li.msg > .content-wrapper > .content {
    margin-bottom: .6em;
    word-wrap: break-word;
    word-break: break-all;
}

body.message-box .messages > ul > li.msg > .content-wrapper > .time {
    text-align: right;
}

body.message-box .messages > .msg-reply {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}

body.message-box .messages > .msg-reply textarea {
    width: 100%;
    height: 75px;
    overflow: auto;
    resize: none;
    border-radius: 3px;
}

body.message-box .messages > .msg-reply .reply-footer {
    padding: 3px 8px;
    color: #999999;
    background: #F3F3F3;
    text-align: right;
}

body.message-box .messages > .msg-reply .reply-footer button[type="submit"] {
    margin: 0 1em;
    padding-left: 2em;
    padding-right: 2em;
    word-spacing: .7em;
}

/*------------------ the sending page ------------------------*/
body.message-box .sending-area {
    padding-top: 2em;
    background: #fff;
}

body.message-box .sending-area textarea {
    resize: vertical;
}

body.message-box .sending-area button[type="submit"] {
    word-spacing: 1.5em;
}

body.message-box .tips {
    padding-top: 1em;
}

body.message-box .tips .item-name,
body.message-box .tips .content {
    padding: 0 27px 10px;
}

body.message-box .tips .item-name {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 6px #bbb;
}

body.message-box .tips .content {
    text-indent: 2em;
    font-size: 16px;
}

/*============== for assignment info page ==================*/
body.assignment-info {
    margin: auto;
    min-width: 800px;
}

body.assignment-info section {
    padding: 1.5em;
    border-radius: 8px;
    background: #F9F9F9;
    box-shadow: #777 5px 5px 12px;
    font-size: 1.3em;
}

body.assignment-info section .row {
    margin-bottom: 1em;
}

body.assignment-info section .item-name {
    text-align: right;
    font-weight: bold;
}

body.assignment-info section .content {
    text-align: left;
}

/*
   the link to the specific assignment info page,
   anchor <a> is not recommended, use span or div instead.
 */
.assignmentInfo-link {
    display: inline-block;
    transition: all .3s;
}

.assignmentInfo-link:hover {
    margin: 0 6px 0 -6px;
    text-shadow: #aaa 5px 5px 5px;
    transition: all .3s;
    cursor: pointer;
}

/*============== for delay apply page ======================*/
form#delay-reason .tips .title {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 6px #bbb;
}

form#delay-reason .tips .content {
    text-indent: 2em;
}

/*============ for defense grouping =================*/
ol.defense-group {
    margin: 0;
    padding: 0 0 0 1em;
}

ol.defense-group > li > span {
    padding: 0 .5em;
}

/*================ for student's Thesis selection page ======================*/
form#thesis-search-4-stu .form-group:last-child,
form#teacher-search-4-stu .form-group:last-child {
    margin-bottom: 0;
}













